package com.leadership.api.dao;

import java.util.List;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.leadership.entity.course.LdCourse;

/**
 * @author haiyan_xiao
 *
 */
@Dao("hibernate")
public interface CourseDao {

    /**
     * 
     * @return
     */
    @Query("FROM LdCourse WHERE disabled = false AND elementId IS NOT NULL AND trainingCourse IS NULL")
    public List<LdCourse> listUmu();
    
    /**
     * 
     * @return
     */
    @Query("FROM LdCourse WHERE disabled = false AND trainingCourse IS NOT NULL AND elementId IS NULL")
    public List<LdCourse> listTraining();

}
